#!/bin/bash
# 遍历文件夹，将以 test- 开头的字符去除
# 字符串操作： https://www.cnblogs.com/chengmo/archive/2010/10/02/1841355.html

# bash for loop
cd ../
for f in $( ls ./ ); do
  if [[ $f == "test-"* ]]; then
    mv ${f} ${f:5};
  fi
done